<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('微博收款列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
        </div>
    </div>
</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('channel:channelAccountWb:edit')}]];
        var removeFlag = [[${@permission.hasPermi('channel:channelAccountWb:remove')}]];
        var prefix = ctx + "channel/channelAccountWb";
		var orderId = [[${orderId}]];
        $(function() {
            var options = {
                url: prefix + "/list/"+orderId,
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export/"+orderId,
                modalName: "微博收款",
		        showExport: true,
                columns: [
				{
					field : 'wbId',
					title : 'id',
					visible: false
				},
				{
					field : 'orderId',
					title : '订单id',
					visible: false
				},
				{
					field : 'payerAccount',
					title : '付款微博账号',
					sortable: true
				},
				{
					field : 'payerUserId',
					title : '付款微博id',
					sortable: true
				},
				{
					field : 'recAccount',
					title : '收款微博账号',
					sortable: true
				},
				{
					field : 'recUserId',
					title : '收款微博id',
					sortable: true
				},
				{
					field : 'createTime',
					title : '收款成功时间',
					sortable: true
				},
				{
					field : 'amount',
					title : '收款金额',
					sortable: true
				},
				{
					field : 'recStatus',
					title : '收款状态',
					sortable: true,
					formatter: function (value, row, index) {
						var actions = [];
						actions.push("<span>" + value=="0"?"未接收":"接收成功" + "</span>");
						return actions.join('');
					},
				},
				{
					field : 'updateTime',
					title : '修改时间',
					sortable: true
				}]
            };
            debugger
            $.table.init(options);
        });
    </script>
</body>
</html>